﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Sauces.Bussinees.Entities.Caja;
using Sauces.Bussinees.Logic.Caja.Service;
using Microsoft.Practices.Unity;
using System.Web.ModelBinding;


namespace Sauces.Web.Caja
{
    public partial class FrmListaCliente : System.Web.UI.Page
    {

        [Dependency]
        public IClienteService clienteService { set; get; }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public IEnumerable<Cliente> GetCliente([Control("txtCriterio")] string criterio)
        {
            return clienteService.getAllClienteByDniRuc(criterio);
        }
    }
}